package com.gao.autowired.nullwire;

import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * @author GaoXi
 * @date 2022/2/24 19:59
 */
@Component
public class OptionalDemo {


    private String name;

    public OptionalDemo(Optional<String> name) {
        this.name = name.orElse("");
    }
}
